import request from '@/utils/request'

// 查询供应商列表
export function listTenant(query) {
  return request({
    url: '/system/tenant/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详细
export function getTenant(infoId) {
  return request({
    url: '/system/tenant/' + infoId,
    method: 'get'
  })
}

// 新增供应商
export function addTenant(data) {
  return request({
    url: '/system/tenant',
    method: 'post',
    data: data
  })
}

// 修改供应商
export function updateTenant(data) {
  return request({
    url: '/system/tenant',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delTenant(infoId) {
  return request({
    url: '/system/tenant/' + infoId,
    method: 'delete'
  })
}

// 导出供应商
export function exportTenant(query) {
  return request({
    url: '/system/tenant/export',
    method: 'get',
    params: query
  })
}

export function listNotPage() {
  return request({
    url: '/system/tenant/getListNotPage',
    method: 'get'
  })
}

export function isPlatform(){
  return request({
    url: '/system/tenant/getIsPlatform',
    method: 'get'
  })
}

export function updStutas(data){
  return request({
    url: '/system/tenant/updStutas',
    method: 'post',
    data: data
  })
}
